/**
 * Created by youngpan on 2017/1/6.
 */
//如果需要一些服务,过滤器，确保服务，和过滤器被加载。
define(['app'],function(app){

   app.controller('categoryCtrl',['$scope','$http',function($scope,$http){
      $http({
         url:'http://192.168.127.222:9090/api/getcategorytitle'
      }).then(function(data){
         $scope.titles = data.data.result;
      })
   }]);

   app.controller('cateCtrl',function($scope){
      $scope.name = "我要学Node"
   })




})